package ooexercise01;


public class Test {
    public static void main(String[] args) {
        /*
        Dog facai = new Dog("发财",5,"绿色");
        facai.eat();
        facai.drink();
        facai.lookHome();

        Chick hongzhong = new Chick("红中",3,"红色");
        hongzhong.eat();
        hongzhong.drink();
        hongzhong.layEggs();

        Fish baiban = new Fish("白板",2,"白色");
        baiban.eat();
        baiban.drink();

         */

        Dog dog = new Dog("小黄",5,"绿色");
        dog.eat();
        dog.drink();
        dog.lookHome();

        Chick chick = new Chick("小白",3,"红色");
        chick.eat();
        chick.drink();
        chick.layEggs();

        Fish fish = new Fish("小蓝",2,"白色");
        fish.eat();
        fish.drink();
    }
}
